<template>
	<div>
		<router-view />
		<van-tabbar route>
			<van-tabbar-item to="/homepage" icon="wap-home-o">首页</van-tabbar-item>
			<van-tabbar-item to='/message' icon="chat-o" badge="10+">消息</van-tabbar-item>
			<van-tabbar-item  to="/cart" icon="cart-o">购物车</van-tabbar-item>
			<van-tabbar-item  to="/my" icon="smile-o">我的</van-tabbar-item>
		</van-tabbar>
	</div>
</template>

<script>
	export default {
		name: "Navigation",
		data() {
			return {

			}
		},
		mounted() { //挂载之后执行的方法

		},
		methods: {
			onClickLeft() {
				history.back()
			},
		},
	}
</script>
